package com.itggm.mapper;

import com.itggm.pojo.Course;
import com.itggm.vo.CourseVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper {
    List<CourseVO> selectCourses(String courseName);

    void delete(String img);

    void updateCourseImg(@Param("courseId") String courseId, @Param("fileName") String fileName);

    void addCourse(Course course);

    void updateCoure(Course course);

    List<Course> selectCoursesByTypeId(@Param("ids") List<Integer> ids);

    List<Course> select(Integer limit);

    List<Course> getCourseList();

    Course getByImg(String img);
}
